The DateTime Control

The DataTime control displays the time in 12-hour or 24-hour format. The time is based on the device supplying the application. For example, if the device is in thin mode, the time is supplied from the system that is hosting the application on the device. If the device is running in Batch mode, the time is based on the device itself.

The Caption for the DateTime control defaults to “hh:mm TT”.

To display time in 12-hour format use "hh:mm".

To display time in 24-hour format, use "HH:mm".

For details on displaying the date and time in other formats, refer to the Developer's Reference Guide on VBA Language Extension, Prompt-Specific Extensions - Formats.

For property descriptions, see Graphical Control Properties.